home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / GLX / cutNpaste / Motif+Xt / README < prev    next >
Encoding:
Text File  |  1994-08-02  |  1.6 KB  |  36 lines

  1.  
  2.  
  3.            Motif Clipboard and Xt Selection Example for Cut & Paste
  4.            
  5.  
  6.            This is a simple demo of cut & paste. This demo displays 
  7.            a molecule from a ".mol" file.  It can only display 
  8.            one molecule at a time.  Because of this, there is 
  9.            no selection box needed to cut and copy the data - 
  10.            the entire molecule is cut or copied.  The left mouse 
  11.            button rotates the molecule.  Data can be found in the
  12.            molecules directory.
  13.            
  14.            The cut and paste is found in docut*.c.  The format
  15.            passed is "STRING" otherwise known as XA_STRING... 
  16.            it's just the ascii text describing the molecule.  
  17.            
  18.            docut_motif.c is the Motif clipboard version.
  19.            docut_xt.c is the Xt version using the X clipboard.
  20.            
  21.            The executables created here interact with each other.
  22.            The Motif clipboard knows how to interact with the
  23.            X clipboard.  This demo has no visible text worth 
  24.            selecting, so it doesn't use the Primary Transfer 
  25.            or Primary Selection.
  26.            
  27.            If you have another program that uses the Motif clipboard 
  28.            or the X clipboard and accepts data
  29.            as a string, you can paste the molecule into
  30.            that program to see the ascii text.  Try this
  31.            with the X clipboard provided in ../Xclipboard.
  32.            
  33.            Run a couple of copies of the program.  Try reading
  34.            in different molecules, rotate them, copy, cut,
  35.            and paste into different windows.
  36.